<?php


namespace api\web\controller;


use api\web\model\NavModel;
use cmf\controller\RestBaseController;

class NavController extends RestBaseController
{
    //导航菜单表
    public function index()
    {
        $data = NavModel::with('nav')
            ->where('pid',0)
            ->select();
        $this->success('导航菜单列表',$data);
    }
}